<?php

namespace app\index\model;

use think\Model;
use traits\model\SoftDelete;
class Lecturer extends Model
{
    use SoftDelete;

    protected $autoWriteTimestamp = 'datetime';

    public function getStatusAttr($value)
    {
        $status = [1=>'应用',2=>'禁用'];
        return $status[$value];
    }

}